CC = gcc
CFLAGS = -c -I./include
app = task
VPATH = source : include
obj = $(patsubst %.c,%.o,$(wildcard src/*.c))
$(app) : $(obj) 
	$(CC) $^ -I/usr/include/mysql -lmysqlclient -o $(app)
%.o : %.c
	$(CC) $(CFLAGS) -I/usr/include/mysql -lmysqlclient $< -o $@
.PHONY : clean
clean:
	rm $(obj) $(app)
